home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / SDKs / PCI Driver Development Kit / • Tools / Utility / LoadDriverTest 950518 / MakeFile < prev    next >
Encoding:
Makefile  |  1996-08-20  |  2.4 KB  |  107 lines  |  [TEXT/MPS ]

  1. #
  2. #### Warning: only the MetroWerks target has been tested.
  3. #
  4. # (<CMD>/B: LoadDriverTest)
  5. #
  6. # Definitions
  7. #    PCICIncludes        -> PCI header files (in Userstartup•PCI)
  8. #    PCILibraries        -> PCI system libraries (in Userstartup•PCI)
  9. #
  10. Src                =    ":Src:"
  11. Obj                =    ":Obj:"
  12. {Obj}            ƒ    {Src}
  13. #
  14. # PCICIncludes    Defined by UserStartup•PCI in System Preferences
  15. # PCILibraries    Defined by UserStartup•PCI in System Preferences
  16. #
  17. SymOpt                  = ON
  18. PPCCOpt                 = off
  19.  
  20. #
  21. # Headers is slightly overkill, as it will rebuild the library even
  22. # if only the display routine changes.
  23. #
  24. Headers    =                                        ∂
  25.         {Src}AppleEventCore.h                    ∂
  26.         {Src}LoadDriverTest.h
  27.  
  28. #
  29. Objects            =                                ∂
  30.         {Obj}AppleEventCore.c.po                ∂
  31.         {Obj}LoadDriverTest.c.po
  32.  
  33. #
  34. # Compiler dependencies -- common to all compilations The idea here
  35. # is that all sources are stored in a {...Src} subdirectory, and all
  36. # objects and code resources output by the linker are stored in the
  37. # {Obj} subdirectory.
  38. #
  39.  
  40. .c.po ƒ .c                                        ∂
  41.         {Headers}
  42.     PPCC -sym on -appleext on -w                ∂
  43.         -d MPW                                    ∂
  44.         -d ISPPC=1                                ∂
  45.         -i "{PCICIncludes}"                        ∂
  46.         -o "{TargDir}"{Default}.c.po            ∂
  47.         {DepDir}{Default}.c
  48.  
  49. #* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  50. #* Build LoadDriverTest
  51. #*
  52. "LoadDriverTest MPW" ƒƒ                            ∂
  53.         MetroWerks                                ∂
  54.         MakeFile                                ∂
  55.         {Headers}                                ∂
  56.         {Objects}
  57.     PPCLink                                        ∂
  58.         {Objects}                                ∂
  59.         "{PCILibraries}"DriverLoaderLib            ∂
  60.         "{PPCLibraries}"InterfaceLib.xcoff        ∂
  61.         "{PPCLibraries}"PPCCRuntime.o            ∂
  62.         -main main                                ∂
  63.         -o "{Obj}"{targ}".xcoff"
  64.     MakePEF                                        ∂
  65.         -l InterfaceLib.xcoff=InterfaceLib        ∂
  66.         -l DriverLoaderLib.xcoff=DriverLoaderLib ∂
  67.         -ft APPL                                ∂
  68.         -o "{targ}"                                ∂
  69.         "{Obj}"{targ}".xcoff"
  70.  
  71. "LoadDriverTest MPW" ƒƒ                            ∂
  72.         MakeFile                                ∂
  73.         {Headers}                                ∂
  74.         {Src}LoadDriverTest.r
  75.     Rez                                            ∂
  76.         -d "MPW=1"                                ∂
  77.         -d "ISPPC=1"                            ∂
  78.         -append                                    ∂
  79.         -t APPL                                    ∂
  80.         -i "{CIncludes}"                        ∂
  81.         -i "{RIncludes}"                        ∂
  82.         {Src}LoadDriverTest.r                    ∂
  83.         -o "{targ}"
  84.  
  85.  
  86. #* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  87. #*
  88. #* Build the MetroWerks resources
  89. #*
  90. MetroWerks ƒ                                    ∂
  91.             "LoadDriverTest.Δ.rsrc"
  92.         echo "MetroWerks resources created"
  93.  
  94. "LoadDriverTest.Δ.rsrc" ƒ                        ∂
  95.             MakeFile                            ∂
  96.             {Headers}                            ∂
  97.             {Src}LoadDriverTest.r
  98.         Rez                                        ∂
  99.             {Src}LoadDriverTest.r                ∂
  100.             -d "ISPPC=1"                        ∂
  101.             -d "MPW=1"                            ∂
  102.             -t rsrc                                ∂
  103.             -c RSED                                ∂
  104.             -i "{CIncludes}"                    ∂
  105.             -i "{RIncludes}"                    ∂
  106.             -o {targ}
  107.